package com.java.star.novel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java.star.novel.core.bean.Result;
import com.java.star.novel.entity.Novel;
import com.java.star.novel.no.to.PageTO;
import com.java.star.novel.no.to.SearchTO;
import com.java.star.novel.no.vo.NovelVO;
import com.java.star.novel.vo.SearchNovelTable;

import java.util.List;

/**
 * <p>
 * 小说表 服务类
 * </p>
 *
 * @author 零限Lx
 * @since 2023-07-13
 */
public interface NovelService extends IService<Novel> {

    List<Novel> getIndexTitleBlockNovel_LX();
    List<Novel> getIndexSideshowNovel_XL();
    List<Novel> getWeekRecommendNovel();/*接口6.1*/
    List<NovelVO> getHotRecommendNovel();/*接口6.2*/
    List<NovelVO> getQualityRecommendNovel();/*接口6.3*/
    List<Novel> recommended(int novelId, int categoryId);
    Result publishNovel(Novel novel);
    SearchNovelTable searchNovelTable(SearchTO searchTO, PageTO page);
}
